package com.karaoke.android.kege.fragment


import android.os.Bundle
import android.support.v4.app.Fragment
import android.transition.Explode
import android.transition.Transition
import com.karaoke.android.kege.BR
import com.karaoke.android.kege.R
import com.karaoke.android.kege.vm.CategoryViewModel
import com.karaoke.android.library.mvvm.BindingConfig


/**
 * A simple [Fragment] subclass.
 */
class CategoryFragment : BaseFragment<CategoryViewModel>()
{
    override val viewModel: CategoryViewModel by lazy { CategoryViewModel() }
    override val config: BindingConfig by lazy { BindingConfig(R.layout.fragment_category, BR.viewModel) }

    override fun onCreate(savedInstanceState: Bundle?)
    {
        super.onCreate(savedInstanceState)
        this.title = "类别点歌"
    }

    override fun getEnterTransition(): Transition = Explode().apply { duration = 200 }

}// Required empty public constructor
